﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="PurchaseBuyAnnal.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.StorageManage.PurchaseBuyAnnal" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">
                <%= GoodsName%>产品采购汇总</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server" Enabled="false"></asp:TextBox>
                            </td>
                            <td align="right">
                                规格型号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutlookc" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                材质：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                            
                        </tr>
                        <asp:Literal runat="server" ID="ltlAdvance" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                        <tr>
                            
                            <td align="right">
                                配送企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompany_PS" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_SC" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                投标企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_TB" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" />
                    <hz:HzLinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                        Text="高级查询"></hz:HzLinkButton>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        DataKeyNames="ProcureCatalogID,HospitalID" EmptyDataText="该医疗机构暂无采购的产品！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize*(AspNetPager1.CurrentPageIndex-1)%></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品编号" Visible="false">
                <ItemTemplate>
                    <%#Eval("Goodsid") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
             <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <%--<asp:BoundField DataField="Factor" HeaderText="转换系数" />--%>
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别"/>
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" />
            <asp:BoundField DataField="ProcurePrice" HeaderText="采购限价" Visible="false"  DataFormatString="{0:N4}"/>
            <asp:BoundField DataField="PurchaseCountSum" HeaderText="采购总量" />
            <asp:BoundField DataField="PurchaseAmountSum" HeaderText="采购总额" DataFormatString="{0:F}" />
            <asp:BoundField DataField="DistributeCountSum" HeaderText="配送总量" />
            <%--  <asp:BoundField DataField="Amount" HeaderText="配送总额" />  --%>
            <asp:BoundField DataField="WarehouseCountSum" HeaderText="入库总量" />
            <asp:BoundField DataField="WarehouseAmountSum" HeaderText="入库总额" DataFormatString="{0:F}" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <hz:HzLinkButton ID="HzButton2" runat="server" OnClientClick='<%# GetURLScript("PurchaseBuyAnnalDetails.aspx?PID="+Eval("ProcureCatalogID")+"&CID="+Eval("CompanyID_PS") )%>'
                        CausesValidation="false" Text='配送详情' />
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span> 更换不同的查询条件可以查看不同状态下的产品。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        &nbsp;
    </div>
</asp:Content>
